/**
 * 
 */
package org.ifconditional.java;

import java.util.Scanner;

/**simple class to test conditional structures
 * @author unai_inigo
 *
 */
public class IfConditional {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
	
		int number = 0;
		String line =""; /* to store what i read from console*/
		
		// Special object to read from console
		Scanner reader = new Scanner(System.in);
		
		System.out.println("please enter a number");
		line = reader.nextLine();
		
		//convert String to int
		number = Integer.parseInt(line);
		
		if (number > 0){
			System.out.println(number + " is bigger than 0");
		}else{
			if (number < 0){
				System.out.println(number + " is negative");
			
			
		    }else{
			System.out.println("is 0");
		    }
		}

	}

}
